﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IndoorProspecting.aspx.cs" Inherits="House客户端.IndoorProspecting" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>室内装修情况勘察页面</title>
    <link href="jquery-easyui-1.5.2/themes/default/easyui.css" rel="stylesheet" />
    <link href="easyui/css/wu.css" rel="stylesheet" />
    <link href="easyui/css/icon.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server"></form>
    <div class="easyui-panel" fit="true" style="border: none;">

        <div style="margin-left: 30px;" id="ff">
            <table>
                <tr>
                    <td>房屋实际用途：</td>
                    <td style="padding-left: 50px;">
                        <select id="Purpose" class="easyui-combobox" style="width: 800px;">
                            <option value="请选择房屋实际用途"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>总楼层：</td>
                    <td style="padding-left: 50px;">
                        <input class="easyui-textbox" type="text" id="LayerNum" placeholder="请输入总楼层" style="width: 800px;" required /><span id="sp1" style="color: red"></span></td>
                </tr>
                <tr>
                    <td>所在楼层：</td>
                    <td style="padding-left: 50px;">
                        <input class="easyui-textbox" type="text" id="Layer" placeholder="请输入所在楼层" style="width: 800px;" required /><span id="sp2" style="color: red"></span></td>
                </tr>
                <tr>
                    <td>朝向：</td>
                    <td style="padding-left: 50px;">
                        <select id="Orientation" class="easyui-combobox" required style="width: 800px;">
                            <option value="请选择房屋朝向"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>住宅类型：</td>
                    <td style="padding-left: 50px;">
                        <select id="Residence" class="easyui-combobox" required style="width: 800px;">
                            <option value="请选择住宅类型"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>户型：</td>
                    <td style="padding-left: 50px;">
                        <input class="easyui-textbox" type="text" id="Bedroom" style="width: 80px;" />卧室&nbsp;&nbsp;&nbsp;
                    <input type="text" id="Hall" class="easyui-textbox" style="width: 80px;" />&nbsp; 客厅
                    <input type="text" id="Toilet" class="easyui-textbox" style="width: 80px;" />&nbsp;
                    卫生间
                    <input type="text" id="Kitchen" class="easyui-textbox" style="width: 80px;" />&nbsp;
                    厨房
                    <input type="text" id="Balcony" class="easyui-textbox" style="width: 80px;" />&nbsp;&nbsp;
                    阳台
                    <input type="text" id="Terrace" class="easyui-textbox" style="width: 80px;" />&nbsp;&nbsp; 露台&nbsp;&nbsp;&nbsp; &nbsp;
                    <input type="text" id="Yard" class="easyui-textbox" style="width: 80px;" />小院
                    </td>
                </tr>
                <tr>
                    <td>客厅装修程度：</td>
                    <td style="padding-left: 50px;">
                        <select id="HallDegree" class="easyui-combobox" required style="width: 800px;">
                            <option value="请选择客厅装修程度"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>客厅装修情况：</td>
                    <td style="padding-left: 50px;">内墙：<input type="checkbox" name="Living_Wall" value="1" />涂料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Living_Wall" value="2" />壁纸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Living_Wall" value="3" />石材&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Living_Wall" value="4" />瓷砖&nbsp;&nbsp;&nbsp; &nbsp;其他：<input type="text" class="easyui-textbox" id="LivingWall_Other" style="width: 300px;" /><br />
                        <br />
                        顶棚：<input type="checkbox" name="Living_Ceiling" value="1" />涂料&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Living_Ceiling" value="2" />顶棚&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 其他：<input type="text" class="easyui-textbox" id="LivingCeiling_Other" style="width: 300px;" /><br />
                        <br />
                        地面：<input type="checkbox" name="Living_Ground" value="1" />地砖<input type="checkbox" name="Living_Ground" value="2" />瓷砖<input type="checkbox" name="Living_Ground" value="3" />混凝土<input type="checkbox" name="Living_Ground" value="4" />木地板<input type="checkbox" name="Living_Ground" value="5" />地革板&nbsp;&nbsp;其他：<input type="text" class="easyui-textbox" id="LivingGround_Other" style="width: 300px;" />
                    </td>
                </tr>
                <tr>
                    <td>居室装修程度：</td>
                    <td style="padding-left: 50px;">
                        <select id="RoomDegree" class="easyui-combobox" required style="width: 800px;">
                            <option value="请选择客厅装修程度"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>居室装修情况：</td>
                    <td style="padding-left: 50px;">内墙：<input type="checkbox" name="Room_Wall" value="1" />涂料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Room_Wall" value="2" />壁纸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Room_Wall" value="3" />石材&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Room_Wall" value="4" />瓷砖&nbsp;&nbsp;&nbsp; &nbsp;其他：<input class="easyui-textbox" type="text" id="RoomWall_Other" style="width: 300px;" /><br />
                        <br />
                        顶棚：<input type="checkbox" name="Room_Ceiling" value="1" />涂料&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Room_Ceiling" value="2" />顶棚&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 其他：<input class="easyui-textbox" type="text" id="RoomCeiling_Other" style="width: 300px;" /><br />
                        <br />
                        地面：<input type="checkbox" name="Room_Ground" value="1" />地砖<input type="checkbox" name="Room_Ground" value="2" />瓷砖<input type="checkbox" name="Room_Ground" value="3" />混凝土<input type="checkbox" name="Room_Ground" value="4" />木地板<input type="checkbox" name="Room_Ground" value="5" />地革板&nbsp;&nbsp;其他：<input class="easyui-textbox" type="text" id="RoomGround_Other" style="width: 300px;" />
                    </td>
                </tr>
                <tr>
                    <td>卫生间装修程度：</td>
                    <td style="padding-left: 50px;">
                        <select id="ToiletDegree" class="easyui-combobox" required style="width: 800px;">
                            <option value="请选择卫生间装修程度"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>卫生间装修情况：</td>
                    <td style="padding-left: 50px;">内墙：<input type="checkbox" name="Toilet_Wall" value="1" />涂料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Toilet_Wall" value="2" />壁纸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Toilet_Wall" value="3" />石材&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Toilet_Wall" value="4" />瓷砖&nbsp;&nbsp;&nbsp; &nbsp;其他：<input type="text" id="ToiletWall_Other" class="easyui-textbox" style="width: 300px;" /><br />
                        <br />
                        顶棚：<input type="checkbox" name="Toilet_Ceiling" value="1" />涂料&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Toilet_Ceiling" value="2" />顶棚&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 其他：<input type="text" class="easyui-textbox" id="ToiletCeiling_Other" style="width: 300px;" /><br />
                        <br />
                        地面：<input type="checkbox" name="Toilet_Ground" value="1" />地砖<input type="checkbox" name="Toilet_Ground" value="2" />瓷砖<input type="checkbox" name="Toilet_Ground" value="3" />混凝土<input type="checkbox" name="Toilet_Ground" value="4" />木地板<input type="checkbox" name="Toilet_Ground" value="5" />地革板&nbsp;&nbsp;其他：<input type="text" class="easyui-textbox" id="ToiletGround_Other" style="width: 300px;" /><br />
                        <br />
                        洁具情况：<input type="checkbox" name="Toilet_Sanitary" value="1" />洁具齐全&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Toilet_Sanitary" value="2" />浴霸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 其他：<input type="text" class="easyui-textbox" id="ToiletSanitary_Other" style="width: 300px;" />
                    </td>
                </tr>
                <tr>
                    <td>厨房装修程度：</td>
                    <td style="padding-left: 50px;">
                        <select id="KitchenDegree" class="easyui-combobox" required style="width: 800px;">
                            <option value="请选择厨房装修程度"></option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>厨房装修情况：</td>
                    <td style="padding-left: 50px;">内墙：<input type="checkbox" name="Kitchen_Wall" value="1" />涂料&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Kitchen_Wall" value="2" />壁纸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Kitchen_Wall" value="3" />石材&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Kitchen_Wall" value="4" />瓷砖&nbsp;&nbsp;&nbsp; &nbsp;其他：<input type="text" class="easyui-textbox" id="KitchenWall_Other" class="easyui-textbox" style="width: 300px;" /><br />
                        <br />
                        顶棚：<input type="checkbox" name="Kitchen_Ceiling" value="1" />涂料&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="Kitchen_Ceiling" value="2" />顶棚&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; 其他：<input type="text" class="easyui-textbox" id="KitchenCeiling_Other" style="width: 300px;" /><br />
                        <br />
                        地面：<input type="checkbox" name="Kitchen_Ground" value="1" />地砖<input type="checkbox" name="Kitchen_Ground" value="2" />瓷砖<input type="checkbox" name="Kitchen_Ground" value="3" />混凝土<input type="checkbox" name="Kitchen_Ground" value="4" />木地板<input type="checkbox" name="Kitchen_Ground" value="5" />地革板&nbsp;&nbsp;其他：<input type="text" class="easyui-textbox" id="KitchenGround_Other" style="width: 300px;" /><br />
                        <br />
                        灶台情况：&nbsp;&nbsp;&nbsp;
                        <input type="checkbox" name="Kitchen_Cooking" value="1" />成套橱柜&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="checkbox" name="Kitchen_Cooking" value="2" />灶台&nbsp;&nbsp;
                        <input type="checkbox" name="Kitchen_Cooking" value="3" />瓷盆&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 其他：<input class="easyui-textbox" type="text" id="KitchenCookingO_ther" style="width: 300px;" />
                    </td>
                </tr>
                <tr>
                    <td>有关说明：</td>
                    <td style="padding-left: 50px;">
                        <textarea id="Explain" style="width: 800px;" required></textarea>
                        <span id="sp3" style="color: red"></span>
                    </td>
                </tr>
                <tr>
                    <td>勘察时间</td>
                    <td style="padding-left: 50px;">
                        <input id="time" type="date" style="width: 800px;" />
                        <span id="sp4" style="color: red"></span>
                    </td>
                </tr>
                <tr>
                    <td style="padding-left: 50px;">
                        <button onclick="funsub()">保存</button></td>
                </tr>
            </table>
        </div>
    </div>
    <script src="jquery-easyui-1.5.2/jquery.min.js"></script>
    <script src="jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script src="jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script src="jquery-easyui-1.5.2/easyloader.js"></script>
    <script src="jquery-easyui-1.5.2/jquery.params.js"></script>
    <script src="jquery-easyui-1.5.2/Common.js"></script>
    <script>
        //绑定房屋用途
        Purpose();
        function Purpose() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "房屋用途" + "&i=" + 1,
                success: function (obj) {
                    obj = eval(obj);
                    $("#Purpose").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        //绑定朝向
        Orientation();
        function Orientation() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "朝向" + "&i=" + 23,
                success: function (obj) {
                    obj = eval(obj);
                    $("#Orientation").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        //绑定住宅类型
        Residence();
        function Residence() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "住宅类型" + "&i=" + 24,
                success: function (obj) {
                    obj = eval(obj);
                    $("#Residence").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        //绑定客厅装修程度
        HallDegree();
        function HallDegree() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "装修程度" + "&i=" + 26,
                success: function (obj) {
                    obj = eval(obj);
                    $("#HallDegree").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        //绑定居室装修程度
        RoomDegree();
        function RoomDegree() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "装修程度" + "&i=" + 26,
                success: function (obj) {
                    obj = eval(obj);
                    $("#RoomDegree").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        //绑定卫生间装修程度
        ToiletDegree();
        function ToiletDegree() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "装修程度" + "&i=" + 26,
                success: function (obj) {
                    obj = eval(obj);
                    $("#ToiletDegree").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        //绑定厨房装修程度
        KitchenDegree();
        function KitchenDegree() {
            $.ajax({
                type: "get",
                url: WebApiURL + "api/Dictionary/?type=" + "装修程度" + "&i=" + 26,
                success: function (obj) {
                    obj = eval(obj);
                    $("#KitchenDegree").combobox({
                        editable: false,
                        data: obj,
                        valueField: "ID",
                        textField: 'Dictionary_Name'
                    });
                }
            })
        }
        function funsub() {
            var ProjectNumber = $.query.get("ProjectNumber");
            var Purpose = $('#Purpose').combobox('getValue');
            var LayerNum = $("#LayerNum").val();
            var Layer = $("#Layer").val();
            var Orientation = $('#Orientation').combobox('getValue');
            var Residence = $('#Residence').combobox('getValue');
            var Bedroom = $("#Bedroom").val();
            var Hall = $("#Hall").val();

            if (LayerNum == "" || LayerNum == null) {
                $("#sp1").html("不能为空");
                return;
            } else {
                $("#sp1").html("");
            }

            if (Layer == "" || Layer == null) {
                $("#sp2").html("不能为空");
                return;
            } else {
                $("#sp2").html("");
            }
            var Toilet = $("#Toilet").val();
            var Kitchen = $("#Kitchen").val();
            var Balcony = $("#Balcony").val();
            var Terrace = $("#Terrace").val();
            var Yard = $("#Yard").val();
            //客厅装修程度
            var HallDegree = $('#HallDegree').combobox('getValue');
            //客厅内墙
            var Living_Wall = [];
            $('input[name="Living_Wall"]:checked').each(function () {
                Living_Wall.push($(this).val());
            });
            Living_Wall = Living_Wall.toString();
            //内墙其他
            var LivingWall_Other = $("#LivingWall_Other").val();
            //客厅顶棚
            var Living_Ceiling = [];
            $('input[name="Living_Ceiling"]:checked').each(function () {
                Living_Ceiling.push($(this).val());
            });
            Living_Ceiling = Living_Ceiling.toString();
            //顶棚其他
            var LivingCeiling_Other = $("#LivingCeiling_Other").val();
            //客厅地面
            var Living_Ground = [];
            $('input[name="Living_Ground"]:checked').each(function () {
                Living_Ground.push($(this).val());
            });
            Living_Ground = Living_Ground.toString();
            //地面其他
            var LivingGround_Other = $("#LivingGround_Other").val();
            //居室装修程度
            var RoomDegree = $('#RoomDegree').combobox('getValue');
            //居室内墙
            var Room_Wall = [];
            $('input[name="Room_Wall"]:checked').each(function () {
                Room_Wall.push($(this).val());
            });
            Room_Wall = Room_Wall.toString();
            //内墙其他
            var RoomWall_Other = $("#RoomWall_Other").val();
            //客厅顶棚
            var Room_Ceiling = [];
            $('input[name="Room_Ceiling"]:checked').each(function () {
                Room_Ceiling.push($(this).val());
            });
            Room_Ceiling = Room_Ceiling.toString();
            //顶棚其他
            var RoomCeiling_Other = $("#RoomCeiling_Other").val();
            //客厅地面
            var Room_Ground = [];
            $('input[name="Room_Ground"]:checked').each(function () {
                Room_Ground.push($(this).val());
            });
            Room_Ground = Room_Ground.toString();
            //地面其他
            var RoomGround_Other = $("#RoomGround_Other").val();
            //卫生间装修程度
            var ToiletDegree = $('#ToiletDegree').combobox('getValue');
            //卫生间内墙
            var Toilet_Wall = [];
            $('input[name="Toilet_Wall"]:checked').each(function () {
                Toilet_Wall.push($(this).val());
            });
            Toilet_Wall = Toilet_Wall.toString();
            //内墙其他
            var ToiletWall_Other = $("#ToiletWall_Other").val();
            //卫生间顶棚
            var Toilet_Ceiling = [];
            $('input[name="Toilet_Ceiling"]:checked').each(function () {
                Toilet_Ceiling.push($(this).val());
            });
            Toilet_Ceiling = Toilet_Ceiling.toString();
            //顶棚其他
            var ToiletCeiling_Other = $("#ToiletCeiling_Other").val();
            //卫生间地面
            var Toilet_Ground = [];
            $('input[name="Toilet_Ground"]:checked').each(function () {
                Toilet_Ground.push($(this).val());
            });
            Toilet_Ground = Toilet_Ground.toString();
            //地面其他
            var ToiletGround_Other = $("#ToiletGround_Other").val();
            //卫生间洁具
            var Toilet_Sanitary = [];
            $('input[name="Toilet_Sanitary"]:checked').each(function () {
                Toilet_Sanitary.push($(this).val());
            });
            Toilet_Sanitary = Toilet_Sanitary.toString();
            //洁具其他
            var ToiletSanitary_Other = $("#ToiletSanitary_Other").val();
            //厨房装修程度
            var KitchenDegree = $('#KitchenDegree').combobox('getValue');
            //厨房内墙
            var Kitchen_Wall = [];
            $('input[name="Kitchen_Wall"]:checked').each(function () {
                Kitchen_Wall.push($(this).val());
            });
            Kitchen_Wall = Kitchen_Wall.toString();
            //内墙其他
            var KitchenWall_Other = $("#KitchenWall_Other").val();
            //厨房顶棚
            var Kitchen_Ceiling = [];
            $('input[name="Kitchen_Ceiling"]:checked').each(function () {
                Kitchen_Ceiling.push($(this).val());
            });
            Kitchen_Ceiling = Kitchen_Ceiling.toString();
            //顶棚其他
            var KitchenCeiling_Other = $("#KitchenCeiling_Other").val();
            //厨房地面
            var Kitchen_Ground = [];
            $('input[name="Kitchen_Ground"]:checked').each(function () {
                Kitchen_Ground.push($(this).val());
            });
            Kitchen_Ground = Kitchen_Ground.toString();
            //地面其他
            var KitchenGround_Other = $("#KitchenGround_Other").val();
            //厨房灶台
            var Kitchen_Cooking = [];
            $('input[name="Kitchen_Cooking"]:checked').each(function () {
                Kitchen_Cooking.push($(this).val());
            });
            Kitchen_Cooking = Kitchen_Cooking.toString();
            //灶台其他
            var KitchenCookingO_ther = $("#KitchenCookingO_ther").val();
            var Explain = $("#Explain").val();
            if (Explain == "" || Explain == null) {
                $("#sp3").html("不能为空");
                return;
            } else {
                $("#sp3").html("");
            }
            var time = $("#time").val();
            if (time == "" || time == null) {
                $("#sp4").html("不能为空");
                return;
            } else {
                $("#sp4").html("");
            }
            $.ajax({
                type: "post",
                url: WebApiURL + "api/Values/Indoor",
                data: {
                    ProjectNumber: ProjectNumber,
                    Indoor_Purpose: Purpose,
                    Indoor_LayerNum: LayerNum,
                    Indoor_Layer: Layer,
                    Indoor_Orientation: Orientation,
                    Indoor_Residence: Residence,
                    Indoor_Bedroom: Bedroom,
                    Indoor_Hall: Hall,
                    Indoor_Toilet: Toilet,
                    Indoor_Kitchen: Kitchen,
                    Indoor_Balcony: Balcony,
                    Indoor_Terrace: Terrace,
                    Indoor_Yard: Yard,
                    Indoor_HallDegree: HallDegree,
                    Living_Wall: Living_Wall,
                    Living_Ceiling: Living_Ceiling,
                    Living_Ground: Living_Ground,
                    Indoor_RoomDegree: RoomDegree,
                    Room_Wall: Room_Wall,
                    Room_Ceiling: Room_Ceiling,
                    Room_Ground: Room_Ground,
                    Indoor_ToiletDegree: ToiletDegree,
                    Toilet_Wall: Toilet_Wall,
                    Toilet_Ceiling: Toilet_Ceiling,
                    Toilet_Ground: Toilet_Ground,
                    Toilet_Sanitary: Toilet_Sanitary,
                    Indoor_KitchenDegree: KitchenDegree,
                    Kitchen_Wall: Kitchen_Wall,
                    Kitchen_Ceiling: Kitchen_Ceiling,
                    Kitchen_Ground: Kitchen_Ground,
                    Kitchen_Cooking: Kitchen_Cooking,
                    Indoor_Explain: Explain,
                    LivingWall_Other: LivingWall_Other,
                    LivingCeiling_Other: LivingCeiling_Other,
                    LivingGround_Other: LivingGround_Other,
                    RoomWall_Other: RoomWall_Other,
                    RoomCeiling_Other: RoomCeiling_Other,
                    RoomGround_Other: RoomGround_Other,
                    ToiletWall_Other: ToiletWall_Other,
                    ToiletCeiling_Other: ToiletCeiling_Other,
                    ToiletGround_Other: ToiletGround_Other,
                    ToiletSanitary_Other: ToiletSanitary_Other,
                    KitchenWall_Other: KitchenWall_Other,
                    KitchenCeiling_Other: KitchenCeiling_Other,
                    KitchenGround_Other: KitchenGround_Other,
                    KitchenCookingO_ther: KitchenCookingO_ther,
                    Indoor_CreateTime: time,
                    Indoor_CreatePeople: "admin"
                },
                success: function (obj) {
                    if (obj > 0) {
                        $.messager.alert("保存成功");
                        location.href = 'ProspectingList.aspx';
                    }
                    else {
                        $.messager.alert("保存失败");
                        location.href = 'IndoorProspecting.aspx';
                    }
                }
            })
        }
    </script>
</body>
</html>
